MySql log all sqls to file
SET global log_output = 'FILE';
SET global general_log_file='/tmp/mysql.log';
SET global general_log = 1;
set foreign_key_checks=0;
SET global log_output = 'FILE';
SET global general_log_file='/tmp/mysql.log';
SET global general_log = 1;
set foreign_key_checks=0;